{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}产品查询{% endblock %}

{% block content %}
<form class="form-inline" id="product" name="product" action="" method="post">
    {{ wtf.quick_form(form) }}
</form>

<br><br>
<table class="table table-bordered">
    <tr>
        <th>产品ID</th>
        <th>产品名称</th>
        <th>产品描述</th>
        <th>产品所有者</th>
    </tr>
        {% if json_data%}
            {% for i in json_data %}
                <tr>

                    <td>{{ i.get('id') }}</td>
                    <td><a href="/web_dim_db?product_id={{ i.get('id') }}">{{ i.get('product_name') }}</a></td>
                    <td>{{ i.get('product_describe') }}</td>
                    <td>{{ i.get('owner_name') }}</td>

                </tr>
            {% endfor %}
        {% endif %}
    </table>
{% endblock %}
